package study.alibaba.sentinel.controller._2_degrade;

import com.google.common.collect.Maps;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import study.eggs.result.Result;
import study.eggs.result.Results;

import java.util.Map;

@Slf4j
@RestController
public class _01_DegradeController {

    @RequestMapping("/degrade1")
    public Result echo() {
        Map<String, Object> data = Maps.newHashMap();
        data.put("msg", "echo1 echo1 echo1");
        return Results.ok(data);
    }
}
